#!/bin/bash

docker stop spu_sku

docker rm -f spu_sku

docker rmi spu_sku:1.0
docker network disconnect --force bridge spu_sku
docker build -t spu_sku:1.0 .

docker run -d -p 8001:8000 --name spu_sku spu_sku:1.0

echo "----------------- 安装完成 运行测试 ----------------------"
sleep 5
docker exec -it spu_sku python -m unittest discover -v
